package com.dom.common.utils;

import java.util.Calendar;

/**
 * @Description TODO
 * @Author xllei
 * @Date 2018/12/17 6:46 PM
 * @Version 1.0
 **/
public class DateTool {
    public static String getDayLastSecondTime(String date){
        Calendar cal = Calendar.getInstance();
        cal.setTime(com.xiaoleilu.hutool.date.DateUtil.parse(date, "yyyy-MM-dd"));
        cal.set(Calendar.HOUR_OF_DAY, 23);
        cal.set(Calendar.MINUTE, 59);
        cal.set(Calendar.SECOND, 59);

        return com.xiaoleilu.hutool.date.DateUtil.format(cal.getTime(), "yyyy-MM-dd HH:mm:ss");
    }
}
